package work20241207_chap8.j;

/**
 * @author zdl
 * @date 2024/12/7
 */
public class Program {
    private Performer[] ps;
    public Program(){
        ps = new Performer[3];
        ps[0] = new Singer();
        ps[1] = new Dancer();
        ps[2] = new Player();
    }
    public void show() {
        ps[0].perform();
        ps[1].perform();
        ps[2].perform();
    }


}
